<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="view.DataList,dao.Student" %>
<% String root = request.getContextPath() + "/"; %>
<div class="container">
    <h1>学生信息</h1>
    <table class="table table-striped">
        <tr>
            <td>ID</td>
            <td>编号</td>
            <td>姓名</td>
            <td>班别</td>
            <td>操作</td>
        </tr>

        <% DataList<Student.Data> dl = (DataList<Student.Data>) request.getAttribute("list"); %>
        <% Student.Data d;
        while((d = dl.next()) != null) { %> 
        <tr>
            <td><%= d.getId() %></td>
            <td><%= d.getNo() %></td>
            <td><%= d.getName() %></td>
            <td><%= d.get_class() %></td>
            <td>
                <a href="<%= root %>teacher/manager/score?id=<%= d.getId() %>">成绩</a>
                <a href="<%= root %>teacher/manager/edit?id=<%= d.getId() %>">修改</a>
                <a href="<%= root %>teacher/manager/del?id=<%= d.getId() %>">删除</a>
            </td>
        </tr>
        <% } %>
    </table>
    <a class="btn btn-primary btn-lg" href="<%= root %>teacher/manager/add">添加</a>
</div>
